import { NuxtAxiosInstance } from '@nuxtjs/axios'
import { WAxios } from '@/plugins/axios'

// eslint-disable-next-line import/no-mutable-exports
let $wAxios: WAxios
// eslint-disable-next-line import/no-mutable-exports
let $axios: NuxtAxiosInstance

export function initializeAxios (waxios: WAxios, axios: NuxtAxiosInstance) {
  $wAxios = waxios
  $axios = axios
}

export {
  $wAxios,
  $axios
}
